import java.util.function.Predicate;

/**
 * @ClassName Demo09
 * @Description TODO
 * @Author Li
 * @Date 2022/8/14 15:12
 * @ModifyDate 2022/8/14 15:12
 * @Version 1.0
 */
public class Demo09 {
    private static void method(Predicate<String> pre) {
        boolean test = pre.negate().test("HelloWorld");
        System.out.println("字符串长度是否大于3:" + test);
    }

    public static void main(String[] args) {
        method(s -> s.length() > 3);
    }
}
